package main

import (
	"fmt"
)

func main() {
	var myList []interface{}

	myList = append(myList, 42)
	myList = append(myList, "hello")
	myList = append(myList, 3.14)
	myList = append(myList, true)

	for _, value := range myList {
		switch v := value.(type) {
		case int:
			fmt.Println("Integer:", v)
		case string:
			fmt.Println("String:", v)
		case float64:
			fmt.Println("Float:", v)
		case bool:
			fmt.Println("Boolean:", v)
		default:
			fmt.Println("Unknown type")
		}
	}
}
